//
//  EnjoyCell.m
//  FreeReading
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "EnjoyCell.h"
#import "EnjoyModel.h"
#import "CategoryModel.h"
@implementation EnjoyCell


-(void)setModel:(EnjoyModel *)model
{
    self.titleLabel.text = model.title;
    self.contentLabel.text = model.content;
    [self.enjoyImageView sd_setImageWithURL:[NSURL URLWithString:model.picUrl] placeholderImage:[UIImage imageNamed:@"placeholder"]];
}

-(void)setCategoryModel:(CategoryModel *)categoryModel
{
    
    self.titleLabel.text = categoryModel.title;
    self.contentLabel.text = categoryModel.s_title;
    [self.enjoyImageView sd_setImageWithURL:[NSURL URLWithString:categoryModel.pic_url] placeholderImage:[UIImage imageNamed:@"placeholder"]];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
